# -*- coding: utf-8 -*-
# Created by liangfuting on 2020/8/5
# Copyright (c) 2020 liangfuting. All rights reserved.


from stark.service.v1 import site,StarkHandler
from web.models import (School,Student,Department,UserInfo,Course,ClassList,Customer,ConsultRecord,PaymentRecord,
                        ScoreRecord,CourseRecord,StudyRecord)

from web.views.course import CourseHandler
from web.views.userinfo import UserInfoHandler
from web.views.school import SchoolHandler
from web.views.depart import DepartmentHandler
from web.views.classlist import ClassListHandler
from web.views.public_customer import PublicCustomerHandler
from web.views.private_customer import PrivateCustomerHandler
from web.views.consult_record import ConsultRecordHandler
from web.views.payment_record import PaymentRecordHandler
from web.views.check_payment_record import CheckPaymentRecordHandler
from web.views.student import StudentHandler
from web.views.score_record import StudentScoreHandler
from web.views.course_record import CourseRecordHandler

site.register(School,SchoolHandler)
site.register(Department,DepartmentHandler)
site.register(UserInfo,UserInfoHandler)
site.register(Course,CourseHandler)
site.register(ClassList,ClassListHandler)
site.register(Customer,PublicCustomerHandler,prev='public')
site.register(Customer,PrivateCustomerHandler,prev='private')
site.register(ConsultRecord,ConsultRecordHandler)
site.register(PaymentRecord,CheckPaymentRecordHandler,prev='check')
site.register(PaymentRecord,PaymentRecordHandler)
site.register(Student,StudentHandler)
site.register(ScoreRecord,StudentScoreHandler)
site.register(CourseRecord,CourseRecordHandler)